#pragma once
#include <iostream>
#include <string>


/** @brief User 负责用户数据 */
class User
{
public:
    User(const std::string& name, const std::string& email)
        : name_(name), email_(email) {}

    std::string GetName() const { return name_; }
    std::string GetEmail() const { return email_; }

private:
    std::string name_;
    std::string email_;
};

/** @brief UserPrinter 负责用户信息展示 */
class UserPrinter
{
public:
    static void Print(const User& user)
    {
        std::cout << "Name: " << user.GetName() << std::endl;
        std::cout << "Email: " << user.GetEmail() << std::endl;
    }
};

